Skip to content

Commit

Permalink
Merge pull request #1 from ahhda/master
Browse files Browse the repository at this point in the history
Push to Github registry instead of Docker hub
  • Loading branch information
ahhda authored Apr 24, 2024
2 parents 7aefa08 + adce28a commit 2ccc91c
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,25 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
env:
AUTODEPLOY_TAG: develop
AUTODEPLOY_URL: ${{ secrets.AUTODEPLOY_URL }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
REGISTRY_URI: "gnosispm/etherbalance"
steps:
- uses: actions/checkout@v2
- name: Deploy
run: docker/deploy.sh ${GITHUB_REF#refs/*/}
- uses: actions/checkout@v3

- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}

- name: Image build
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 2ccc91c

Please sign in to comment.