open-dmarc-analyzer-docker/.gitea/workflows/publish.yaml

36 lines
887 B
YAML
Raw Normal View History

2024-03-26 14:49:36 +01:00
#
# Build docker image
#
2024-03-26 15:31:18 +01:00
name: BuildTag
2024-03-26 14:49:36 +01:00
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on:
push:
tags:
- '*'
jobs:
2024-03-26 15:04:43 +01:00
BuildVersion:
env:
RUNNER_TOOL_CACHE: /toolcache
2024-03-26 14:49:36 +01:00
runs-on: cth-ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up docker buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
network=giteanet
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
2024-03-26 15:31:18 +01:00
- name: Build and push version
2024-03-26 14:49:36 +01:00
uses: docker/build-push-action@v5
env:
ACTIONS_RUNTIME_TOKEN: ''
with:
push: true
tags: zeguigui/open-report-analyzer:${{ gitea.ref_name }}