Skip to content

Commit

Permalink
Update to non-deprecated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaguire committed Nov 9, 2020
1 parent eefdaae commit 51a5f1c
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/dockerpublish.yml
Expand Up @@ -5,17 +5,30 @@ on:
types: [published]

jobs:
# Push image to GitHub Packages.
push_to_registry:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v2

- name: Push to Github Packages
uses: docker/build-push-action@v1
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: fmaguire/rgi
tag_with_ref: true
push: true
tags: finlaymaguire/rgi:latest
build-args: |
software_version=${{ github.event.release.tag_name }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 51a5f1c

Please sign in to comment.