Skip to content

v2023_10_120_1

v2023_10_120_1 #36

Workflow file for this run

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 }}