Skip to content

Simplifying to remove tags #6

Simplifying to remove tags

Simplifying to remove tags #6

name: Publish Conductor API to DockerHub
on:
push:
branches:
- main
# TODO remove before PR merge
- conductor-docker-publish
release:
types: [published]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ secrets.DOCKERHUB_REPOSITORY }}/faims3-api-test
#tags: |
# type=sha,prefix=
# type=ref,event=branch
# type=semver,pattern={{version}}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
file: ./api/BuildDockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}