Update enigma-docker.yml removed commented lines #6
Workflow file for this run
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: ghcr.io/${{ github.repository }}:${{ github.ref_name }} | |
PROVIDER: github | |
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] | |
with: | |
command: bake | |
DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | |
DOCKER_TAG: ${{ env.DOCKER_TAG }} | |
DOCKERFILE_PATH: .docker/Dockerfile | |
GITHUB_USERNAME: ${{ github.actor }} | |
TOKEN: ${{ secrets.GITHUB }} | |
- name: Publish Docker Image | |
uses: clouddrove/[email protected] | |
with: | |
command: publish | |
DOCKER_IMAGE: ${{ env.DOCKER_IMAGE }} | |
DOCKER_TAG: ${{ env.DOCKER_TAG }} | |
DOCKERFILE_PATH: .docker/Dockerfile | |
GITHUB_USERNAME: ${{ github.actor }} | |
TOKEN: ${{ secrets.GITHUB }} |