Check out correct branch

This commit is contained in:
Max Isom 2022-01-25 20:15:14 -05:00
parent 8041586c31
commit 9c1ca244b2
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880

View file

@ -26,7 +26,7 @@ jobs:
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: /tmp/.buildx-cache path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-prs-${{ matrix.build-arch }}-${{ github.sha }} key: ${{ runner.os }}-buildx-prs-${{ matrix.build-arch }}-${{ github.event.pull_request.head.sha }}
restore-keys: | restore-keys: |
${{ runner.os }}-buildx-prs-${{ matrix.build-arch }} ${{ runner.os }}-buildx-prs-${{ matrix.build-arch }}
@ -36,6 +36,10 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Build and push - name: Build and push
id: docker_build id: docker_build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2