This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
Tag CI #18
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: Tag CI | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
docker: | |
name: Build and push Docker image on pushed tag | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set projeqtor version | |
run: echo "PROJEQTOR_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
build-args: | | |
PJT_VERSION=${{ env.PROJEQTOR_VERSION }} | |
tags: ${{ secrets.DOCKERHUB_USERNAME }}/projeqtor:${{ env.PROJEQTOR_VERSION }},${{ secrets.DOCKERHUB_USERNAME }}/projeqtor:latest |