Skip to content

Commit

Permalink
chore: add arm tag
Browse files Browse the repository at this point in the history
  • Loading branch information
aldinokemal committed Feb 11, 2024
1 parent 981eaf0 commit 9b7004a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 34 deletions.
32 changes: 4 additions & 28 deletions .github/workflows/build-docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
environment: production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Login Registry
uses: docker/login-action@v3
with:
Expand All @@ -28,14 +28,14 @@ jobs:
push: true
context: .
file: ./docker/golang.Dockerfile
tags: ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:latest-amd, ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:${{ github.ref_name }}-amd
tags: ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:latest,${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:latest-amd, ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:${{ github.ref_name }}-amd

build-and-push-arm:
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
environment: production
runs-on: [ARM64]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Login Registry
uses: docker/login-action@v3
with:
Expand All @@ -49,28 +49,4 @@ jobs:
push: true
context: .
file: ./docker/golang.Dockerfile
tags: ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:latest-arm, ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:${{ github.ref_name }}-arm

create-manifest:
needs:
- build-and-push-amd
- build-and-push-arm
runs-on: ubuntu-latest
steps:
- name: Login Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Create and push manifest images latest
uses: Noelware/docker-manifest-action@master
with:
inputs: ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:latest
images: ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:latest-arm,${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:latest-amd
push: true
- name: Create and push manifest versioned images
uses: Noelware/docker-manifest-action@master
with:
inputs: ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:${{ github.ref_name }}
images: ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:${{ github.ref_name }}-arm,${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:${{ github.ref_name }}-amd
push: true
tags: ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:latest-arm, ${{ secrets.REGISTRY_USERNAME }}/go-whatsapp-web-multidevice:${{ github.ref_name }}-arm
4 changes: 2 additions & 2 deletions .github/workflows/deploy-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Ubuntu update package
run: |
sudo apt update -y
sudo apt install libvips-dev
- name: Golang Installation
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Golang setup dependency
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
runs-on: macos-latest
environment: production
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install libvips
run: |
brew install vips
- name: Golang Installation
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Golang setup dependency
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: windows-latest
environment: production
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install pkgconfig
uses: crazy-max/ghaction-chocolatey@v3
with:
Expand All @@ -32,7 +32,7 @@ jobs:
Copy-Item -Path ${{ github.workspace }}\vips-dev-8.12\bin\* -Destination C:/Strawberry/c/bin -force -recurse
Copy-Item -Path ${{ github.workspace }}\vips-dev-8.12\include\* -Destination C:/Strawberry/c/include -force -recurse
- name: Golang Installation
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: '1.21'
- name: Golang setup dependency
Expand Down

0 comments on commit 9b7004a

Please sign in to comment.