Skip to content

Commit

Permalink
feat: Download artifact on docker publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt committed Sep 8, 2024
1 parent 17f8c51 commit 44be6da
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download build dist app
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: adempiere-processors-service.zip
- name: Unzip Asset
Expand Down Expand Up @@ -182,32 +183,36 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download build dist app
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: adempiere-processors-service.zip

- name: Unzip Asset
run: |
unzip adempiere-processors-service.zip -d docker/
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

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

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
# CONFIGURE DOCKER SECRETS INTO REPOSITORY
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Push alpine image in Docker Hub
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
file: docker/Dockerfile
platforms: linux/amd64,linux/amd64/v2,linux/arm64/v8
push: true
tags: |
${{ secrets.DOCKER_HUB_REPO_NAME }}:${{ github.event.release.tag_name }}
${{ secrets.DOCKER_HUB_REPO_NAME }}:latest
${{ secrets.DOCKER_HUB_REPO_NAME }}:latest

0 comments on commit 44be6da

Please sign in to comment.