Skip to content

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Gutierrez committed Nov 11, 2021
1 parent 47f6743 commit 6eb6014
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
uses: actions/checkout@v2

- name: Get branch name
id: git
Expand All @@ -22,32 +22,33 @@ jobs:
echo "::set-output name=tag::${TAG}"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
uses: docker/setup-qemu-action@v1
with:
platforms: amd64,arm64,arm,386

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1.5.1
uses: docker/setup-buildx-action@v1

# - name: Login to DockerHub
#uses: docker/login-action@v1.10.0
#with:
#username: ${{ github.repository_owner }}
#password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ secrets.CR_PAT }}

- name: Build and push
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
${{ github.repository }}:${{ steps.git.outputs.name }}
ghcr.io/${{ github.repository }}:${{ steps.git.outputs.name }}
- name: Push latest
Expand All @@ -57,12 +58,13 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:latest
#- name: Update repo description
#uses: peter-evans/dockerhub-description@v2.4.3
#if: steps.git.outputs.tag == 'true'
#with:
#username: ${{ github.repository_owner }}
#password: ${{ secrets.DOCKERHUB_PASSWORD }}
#repository: ${{ github.repository }}
- name: Update repo description
uses: peter-evans/dockerhub-description@v2
if: steps.git.outputs.tag == 'true'
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ github.repository }}

0 comments on commit 6eb6014

Please sign in to comment.