Bump version to 0.1.30 #30
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: Build Docker image and push to Docker Hub | |
on: | |
push: | |
branches: [ 'main' ] | |
tags: [ '*.*.*' ] | |
jobs: | |
build: | |
name: Build a new Docker image for the release (and a latest) and push it to Docker Hub | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/actions/checkout | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# https://github.com/docker/login-action | |
- name: Log into Docker Hub | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v3 | |
with: | |
registry: docker.io | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
# https://github.com/docker/metadata-action | |
- name: Extract Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: docker.io/${{ secrets.DOCKERHUB_IMAGE_NAME }} | |
# https://github.com/docker/build-push-action | |
- name: Build and push Docker image | |
if: github.event_name != 'pull_request' | |
id: build-and-push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |