Update enigma-docker.yml #17
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
name: Enigma Docker Build and Publish. | |
on: | |
push: | |
# tags: [ v* ] | |
jobs: | |
docker-build-publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 'read' | |
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 | |
PROVIDER: github | |
BUILD_ARCHITECTURE_ARM64: arm64 | |
BUILD_ARCHITECTURE_AMD64: linux/amd64 | |
PUBLISH: 'false' | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
# - name: Build and Publish Docker Image | |
# uses: clouddrove/[email protected] | |
# with: | |
# command: build-publish | |
# DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | |
# DOCKER_TAG: ${{ env.DOCKER_TAG_AMD64 }} | |
# BUILD_ARCHITECTURE: ${{ env.BUILD_ARCHITECTURE_ARM64 }} | |
# DOCKERFILE_PATH: .docker/Dockerfile | |
# PUBLISH: ${{ env.PUBLISH }} | |
# TOKEN: ${{ secrets.GITHUB }} | |
# GITHUB_USERNAME: ${{github.actor}} | |
# - name: setup qemu | |
# run: sudo apt install qemu qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Build and Publish Docker Image | |
uses: clouddrove/[email protected] | |
with: | |
command: build-publish | |
DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | |
DOCKER_TAG: ghcr.io/${{ github.repository }}:v1-arm64 | |
BUILD_ARCHITECTURE: ${{ env.BUILD_ARCHITECTURE_ARM64 }} | |
DOCKERFILE_PATH: .docker/Dockerfile | |
PUBLISH: ${{ env.PUBLISH }} | |
TOKEN: ${{ secrets.GITHUB }} | |
GITHUB_USERNAME: ${{github.actor}} |