Build Docker images for x86 and ARM architectures
This commit is contained in:
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Build and push Docker image
|
||||
- name: Build and push Docker image for main
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
@ -28,6 +28,7 @@ jobs:
|
||||
tags: |
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/filekeeper:${{ github.ref_name }}
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/filekeeper:latest
|
||||
platforms: linux/amd64,linux/arm64
|
||||
if: github.ref == 'refs/heads/main'
|
||||
|
||||
- name: Build and push Docker image for staging
|
||||
@ -37,4 +38,5 @@ jobs:
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/filekeeper:staging
|
||||
platforms: linux/amd64,linux/arm64
|
||||
if: github.ref == 'refs/heads/staging'
|
||||
|
Reference in New Issue
Block a user