Skip to content

Commit

Permalink
try thing
Browse files Browse the repository at this point in the history
  • Loading branch information
haarg committed May 7, 2024
1 parent aa6eba2 commit f2d2c68
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ on:
jobs:
docker:
runs-on: ubuntu-22.04
name: Docker Push
name: Docker Build and Push
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Generate Auth Token
uses: actions/create-github-app-token@v1
id: app-token
Expand All @@ -32,6 +34,9 @@ jobs:
with:
target: test
push: false
load: true
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Perl tests
run: docker run -i ${{ steps.docker-build-test.outputs.imageid }}
- name: Docker meta
Expand All @@ -52,6 +57,8 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Update deployed image
if: ${{ contains( fromJSON(steps.meta.outputs.json).tags, format('{0}:latest', github.repository)) }}
uses: benc-uk/workflow-dispatch@v1
Expand Down

0 comments on commit f2d2c68

Please sign in to comment.