Skip to content

fix docker action input #2

fix docker action input

fix docker action input #2

Workflow file for this run

name: Build and deploy Docker image
on:
push:
release:
types:
- published
jobs:
build-deploy-docker:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout tree
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ github.sha }},${{ github.head_ref || github.ref_name }}