-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (23 loc) · 1.02 KB
/
docker-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 }}