Skip to content

Commit

Permalink
Update actions versions and test building local dev image
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmcnulty committed Oct 2, 2024
1 parent 751019d commit c59fae2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Create and publish a Docker image

on:
push:
branches: ["main"]
branches: ["py312"]

env:
REGISTRY: ghcr.io
Expand All @@ -20,15 +20,15 @@ jobs:
uses: actions/checkout@v2

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
Expand All @@ -38,7 +38,7 @@ jobs:
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
uses: docker/build-push-action@v6
with:
context: .
push: true
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/docker-test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
- name: Test docker image build (production)
uses: docker/build-push-action@v6
with:
context: .
push: false

- name: Test docker image build (local development)
uses: docker/build-push-action@v6
with:
context: .
push: false
args:
- REQ_FILE=requirements/tests.txt

0 comments on commit c59fae2

Please sign in to comment.