forked from anmolnagpal/devops-machine
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update enigma workflow to build arm and amd based images (#12)
* fix: Update enigma workflow to build arm and amd based images * Update enigma-docker.yml and added multi build * fix sanity checks * Update helm version to latest --------- Co-authored-by: Shivam Kumar <[email protected]>
- Loading branch information
1 parent
eaa4a4a
commit ee27f04
Showing
5 changed files
with
38 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,35 +11,33 @@ jobs: | |
id-token: 'write' | ||
env: | ||
DOCKER_IMAGE: devops-machine | ||
DOCKER_TAG: ghcr.io/${{ github.repository }}:${{ github.ref_name }} | ||
DOCKER_TAG_ARM64: ghcr.io/${{ github.repository }}:${{ github.ref_name }}-arm64 | ||
DOCKER_TAG_AMD64: ghcr.io/${{ github.repository }}:${{ github.ref_name }}-amd64 | ||
PROVIDER: github | ||
|
||
BUILD_ARCHITECTURE_ARM64: arm64 | ||
BUILD_ARCHITECTURE_AMD64: amd64 | ||
PUBLISH: 'true' | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Build Docker Image | ||
uses: clouddrove/[email protected] | ||
|
||
- name: Build and Publish Docker Image | ||
uses: clouddrove/[email protected] | ||
with: | ||
command: bake | ||
command: build-publish | ||
DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | ||
DOCKER_TAG: ${{ env.DOCKER_TAG }} | ||
DOCKER_TAG: ${{ env.DOCKER_TAG_ARM64 }} | ||
BUILD_ARCHITECTURE: ${{ env.BUILD_ARCHITECTURE_ARM64 }} | ||
DOCKERFILE_PATH: .docker/Dockerfile | ||
GITHUB_USERNAME: ${{ github.actor }} | ||
TOKEN: ${{ secrets.GITHUB }} | ||
|
||
- name: Publish Docker Image | ||
uses: clouddrove/[email protected] | ||
PUBLISH: ${{ env.PUBLISH }} | ||
|
||
- name: Build and Publish Docker Image | ||
uses: clouddrove/[email protected] | ||
with: | ||
command: publish | ||
command: build-publish | ||
DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | ||
DOCKER_TAG: ${{ env.DOCKER_TAG }} | ||
DOCKER_TAG: ${{ env.DOCKER_TAG_AMD64 }} | ||
BUILD_ARCHITECTURE: ${{ env.BUILD_ARCHITECTURE_AMD64 }} | ||
DOCKERFILE_PATH: .docker/Dockerfile | ||
GITHUB_USERNAME: ${{ github.actor }} | ||
TOKEN: ${{ secrets.GITHUB }} | ||
PUBLISH: ${{ env.PUBLISH }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters