Skip to content

Commit

Permalink
Merge pull request #23 from berquist/update-gha-versions
Browse files Browse the repository at this point in the history
Update Action versions
  • Loading branch information
berquist committed Nov 15, 2023
2 parents fb23e6b + d6b37a9 commit 56be7fe
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build_and_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
pull_request:
branches:
- 'main'
workflow_dispatch:

jobs:
docker:
Expand All @@ -25,11 +26,11 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
-
name: Gather metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
shivupa/cclib-ci
Expand All @@ -41,28 +42,28 @@ jobs:
type=edge,prefix=${{ matrix.pyver }}-
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
-
name: Build and export to Docker
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ${{ matrix.pyver }}
push: false
load: true
tags: ${{ steps.meta.outputs.tags }}
-
name: Login to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
when: ${{ github.event_name != 'pull_request'}}

-
name: Build and push
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
context: ${{ matrix.pyver }}
push: ${{ github.event_name != 'pull_request'}}
Expand Down

0 comments on commit 56be7fe

Please sign in to comment.