Skip to content

Commit

Permalink
Fixing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
daithihearn committed Apr 24, 2023
1 parent 545c0d1 commit 25ce266
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/publish-to-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,22 @@ jobs:
runs-on: self-hosted

steps:
- name: Login to Dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install jq
run: sudo apt-get update && sudo apt-get install -y jq
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
- name: Build and publish Docker image
uses: docker/build-push-action@v2
with:
name: daithihearn/electricity-prices-dashboard
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
context: .
push: true
platforms: linux/amd64,linux/arm64/v8
tags: "latest,${{ github.ref_name }}"
tags: |
daithihearn/electricity-prices-dashboard:latest
daithihearn/electricity-prices-dashboard:${{ github.ref_name }}

0 comments on commit 25ce266

Please sign in to comment.