Skip to content

Commit

Permalink
Merge pull request #48 from udx/UAT-42
Browse files Browse the repository at this point in the history
Docker Hub Release
  • Loading branch information
fqjony authored Sep 16, 2024
2 parents abb388e + acd0e3f commit 397284c
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,38 @@ jobs:
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docker-release:
runs-on: ubuntu-latest
needs: [test-pipeline, github-release]
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: |
usabilitydynamics/udx-worker:${{ needs.test-pipeline.outputs.semVer }}
usabilitydynamics/udx-worker:latest
build-args: |
GIT_VERSION=${{ needs.test-pipeline.outputs.semVer }}
- name: Log out from Docker Hub
run: docker logout

0 comments on commit 397284c

Please sign in to comment.