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

34 lines
889 B
YAML
Raw Normal View History

2024-03-26 05:52:23 +01:00
#
# Build docker image
#
2024-03-26 15:31:18 +01:00
name: BuildMain
2024-03-26 05:52:23 +01:00
run-name: ${{ gitea.actor }} running CI in the pipeline 🚀
on: [ push ]
jobs:
2024-03-26 15:04:43 +01:00
BuildLatest:
2024-03-26 06:11:17 +01:00
runs-on: cth-ubuntu-latest
2024-03-26 05:52:23 +01:00
if: gitea.ref == 'refs/heads/main'
2024-03-26 15:04:43 +01:00
env:
RUNNER_TOOL_CACHE: /toolcache
2024-03-26 05:52:23 +01:00
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up docker buildx
2024-03-26 06:05:03 +01:00
uses: docker/setup-buildx-action@v3
2024-03-26 08:10:38 +01:00
with:
driver-opts: |
network=giteanet
- name: Login to Docker Hub
2024-03-26 06:05:03 +01:00
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 latest
2024-03-26 06:05:03 +01:00
uses: docker/build-push-action@v5
2024-03-26 08:10:38 +01:00
env:
ACTIONS_RUNTIME_TOKEN: ''
2024-03-26 06:05:03 +01:00
with:
2024-03-26 15:04:43 +01:00
push: true
2024-03-26 06:05:03 +01:00
tags: zeguigui/open-report-analyzer:latest