v2022_7_472_1 #31
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: DockerHub | |
on: | |
release: | |
types: [published] | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
paths: | |
- '*' | |
- '!*.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Get Docker tags for Debian based image | |
id: meta | |
uses: docker/metadata-action@v3 | |
with: | |
images: 1574242600/cf-warp | |
tags: | | |
type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} | |
type=match,pattern=v(.*) | |
type=sha | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and push the Debian based image | |
id: build | |
uses: docker/build-push-action@v2 | |
with: | |
file: Dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
- name: Images digests | |
run: echo ${{ steps.build.outputs.digest }} |