Skip to content

Commit

Permalink
Update enigma-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Sunglasses authored Oct 15, 2024
1 parent 0b1ac98 commit 4eb731a
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/enigma-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,21 @@ jobs:
id-token: 'write'
env:
DOCKER_IMAGE: devops-machine
DOCKER_TAG_ARM64: ghcr.io/${{ github.repository }}:${{ github.ref_name }}-arm64
DOCKER_TAG_AMD64: ghcr.io/${{ github.repository }}:${{ github.ref_name }}-amd64
DOCKER_TAG: ghcr.io/${{ github.repository }}:${{ github.ref_name }}
PROVIDER: github
BUILD_ARCHITECTURE_ARM64: arm64
BUILD_ARCHITECTURE_AMD64: amd64
PUBLISH: 'true'
DOCKER_MULTI_ARCH_BUILD: 'true'

steps:
- name: Checkout code
uses: actions/checkout@v4.1.7

- name: Build and Publish Docker Image for ARM64
uses: clouddrove/enigma@v0.0.11
- name: Build and Publish Docker Image MultiArch
uses: mr-sunglasses/enigma@multiarch-build
with:
command: build-publish
command: bake-publish
DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }}
DOCKER_TAG: ghcr.io/${{ github.repository }}:v2-arm64
BUILD_ARCHITECTURE: ${{ env.BUILD_ARCHITECTURE_ARM64 }}
DOCKER_TAG: ${{ env.DOCKER_TAG }}
DOCKER_MULTI_ARCH_BUILD: ${{ env.DOCKER_MULTI_ARCH_BUILD }}
DOCKERFILE_PATH: .docker/Dockerfile
PUBLISH: ${{ env.PUBLISH }}
TOKEN: ${{ secrets.GITHUB }}
GITHUB_USERNAME: ${{github.actor}}

- name: Build and Publish Docker Image for AMD64
uses: clouddrove/enigma@v0.0.11
with:
command: build-publish
DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }}
DOCKER_TAG: ghcr.io/${{ github.repository }}:v3-amd64
BUILD_ARCHITECTURE: ${{ env.BUILD_ARCHITECTURE_AMD64 }}
DOCKERFILE_PATH: .docker/Dockerfile
PUBLISH: ${{ env.PUBLISH }}
TOKEN: ${{ secrets.GITHUB }}
GITHUB_USERNAME: ${{github.actor}}

0 comments on commit 4eb731a

Please sign in to comment.