bump version of manageritm-client #56
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
# Main Workflow for Building & Publishing Github Containers to ghcr.io | |
name: Docker Build & Publish to GitHub Container Registry | |
on: | |
push: | |
branches: | |
# main will be the latest released version | |
- 'main' | |
# anything under a build/ folder will be used as testing the build processes. | |
- 'build/*' | |
tags: | |
- '*' | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build-and-push-docker-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Log into registry ${{ env.REGISTRY }} | |
uses: docker/login-action@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Docker buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Extract Docker metadata | |
id: meta | |
uses: docker/metadata-action@v2 | |
with: | |
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} | |
- name: Build and Push Versioned Docker Image | |
id: build-and-push | |
uses: docker/build-push-action@v4 | |
if: ${{ github.ref != 'refs/heads/main' }} | |
with: | |
context: . | |
push: true | |
provenance: false | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
- name: Build and Push Latest Docker Image | |
id: build-and-push-latest | |
uses: docker/build-push-action@v4 | |
if: ${{ github.ref == 'refs/heads/main' }} | |
with: | |
context: . | |
push: true | |
provenance: false | |
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest | |
labels: ${{ steps.meta.outputs.labels }} |