Skip to content

removed annotation type from filename #8

removed annotation type from filename

removed annotation type from filename #8

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning.
name: Publish Docker image Quads Creator
on:
push:
tags:
- "qc-v*"
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
# Checkout the repo
# https://github.com/actions/checkout
- name: Check out the repo
uses: actions/checkout@v3
# Log in to Docker Hub
# https://github.com/docker/login-action
# Uses the login and a DockerHub token
# https://hub.docker.com/settings/security
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: vcity/quads-creator
# Build and push Docker image
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: quads-creator
file: ./quads-creator/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}