Build
All checks were successful
release-tag / release-image (push) Successful in 57s

This commit is contained in:
2024-03-06 20:29:27 +01:00
parent 7f4113d4ed
commit 9c1daf84e2

View File

@@ -9,13 +9,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: catthehacker/ubuntu:act-22.04 image: catthehacker/ubuntu:act-22.04
env:
DOCKER_LATEST: latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
with:
fetch-depth: 0 # all history for all branches and tags
- name: Set up Docker BuildX - name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
@@ -27,21 +23,22 @@ jobs:
username: ${{ gitea.repository_owner }} username: ${{ gitea.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- name: Get Meta - name: Docker meta
id: meta id: meta
run: | uses: docker/metadata-action@v5
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT with:
images: gitea.marijndoeve.nl/${{github.repository}}
tags: |
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push - name: Build and push
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
env: env:
ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119 ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119
IMAGE_NAME: gitea.marijndoeve.nl/Harmitcraft/${{ steps.meta.outputs.REPO_NAME }}
with: with:
context: containers/web context: containers/web
file: ./Containerfile file: containers/web/Containerfile
platforms: |
linux/amd64
push: true push: true
tags: | tags: ${{ steps.meta.outputs.tags }}
${{ env.IMAGE_NAME }}:${{ env.DOCKER_LATEST }} labels: ${{ steps.meta.outputs.labels }}