Release (asd-action) #44
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: Release (asd-action) | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
name: Push Docker image to GitHub Container Registry | |
runs-on: ubuntu-latest | |
env: | |
PACKAGE_NAME: asd-action | |
VERSION_NAME: latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push to GitHub Container Registry | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
tags: ghcr.io/${{ github.repository_owner }}/${{ env.PACKAGE_NAME }}:${{ env.VERSION_NAME }} | |
context: docker/asd-action | |
file: docker/asd-action/Dockerfile | |
env: | |
DOCKER_BUILDKIT: 1 |