Skip to content

Workflow file for this run

name: Build and Push Docker Image for Release
on:
release:
types: [published] # Trigger the workflow when a new release is published
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Docker Login
# You may pin to the exact commit or the version.
# uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446
uses: docker/[email protected]
with:
# Username used to log against the Docker registry
username: ${{ secrets.DOCKER_HUB_USERNAME }}
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.DOCKER_HUB_PASSWORD}}
- name: Build and push Docker images
# You may pin to the exact commit or the version.
# uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c
uses: docker/[email protected]
with:
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/limitr:latest, ${{ secrets.DOCKER_HUB_USERNAME }}/limitr:${{ github.event.release.tag_name }}