Files
Season-4/.gitea/workflows/release-tag.yml
Marijn Doeve af55c5fa70
Some checks failed
release-tag / release-image (push) Failing after 8s
Build
2024-03-06 20:34:13 +01:00

45 lines
1.1 KiB
YAML

name: release-tag
on:
push:
branches: [ main ]
jobs:
release-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: gitea.marijndoeve.nl
username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Lowercase Name
run: |
echo "IMAGE_NAME=${GITEA_REPOSITORY@L}" >> "${GITEA_ENV}"
- name: Build and push
uses: docker/build-push-action@v5
env:
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
IMAGE_URL: gitea.marijndoeve.nl/${{ IMAGE_NAME }}
with:
context: containers/web
file: ./Containerfile
platforms: |
linux/amd64
push: true
tags: |
${{ env.IMAGE_URL }}:latest