S3-Mounter/.gitea/workflows/container-build.yaml

31 lines
908 B
YAML
Raw Normal View History

2023-08-04 15:47:47 +00:00
name: S3 mount container image build
on:
release:
types: [published]
push:
jobs:
build:
2023-08-04 16:49:00 +00:00
container:
2023-08-07 09:34:31 +00:00
image: git.halis.io/athens-school/runner-images:debian12.1-node18
2023-08-04 15:47:47 +00:00
runs-on: [arm64]
steps:
2023-08-05 09:42:11 +00:00
- name: Make tag
id: tag_vars
2023-08-05 10:03:33 +00:00
run: echo "IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)" >> $GITHUB_OUTPUT
2023-08-07 09:37:42 +00:00
- name: Checkout repository
uses: actions/checkout@v3
2023-08-05 10:52:54 +00:00
- name: Login to register
2023-08-05 11:09:47 +00:00
uses: https://gitea.com/docker/login-action@v2
2023-08-05 10:52:54 +00:00
with:
registry: git.halis.io
username: ${{ github.actor }}
2023-08-07 09:34:31 +00:00
password: ${{ secrets.CONTAINER_TOKEN }}
- name: Build and push
uses: https://github.com/docker/build-push-action@v4
with:
context: .
push: true
2023-08-07 09:35:29 +00:00
tags: ${{ steps.tag_vars.outputs.IMAGE_NAME }}:latest