S3-Mounter/.gitea/workflows/container-build.yaml
Tanguy Herbron 4365f3515f
Some checks failed
S3 mount container image build / build (push) Failing after 4s
pipeline runner
2023-08-05 13:05:27 +02:00

34 lines
1.0 KiB
YAML

name: S3 mount container image build
on:
release:
types: [published]
push:
workflow_dispatch:
jobs:
build:
container:
image: docker:latest
runs-on: [arm64]
steps:
- name: Make tag
id: tag_vars
run: echo "IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)" >> $GITHUB_OUTPUT
- name: Docker login
run: docker login ${{ GITHUB_SERVER_URL }} -u ${{ GITHUB_REPOSITORY_OWNER }} --password not-a-password
- name: Login to register
uses: https://gitea.com/docker/login-actions@v2
with:
registry: git.halis.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker pull
run: docker pull ubuntu:latest
- name: Var envs
run: export
- name: Docker retag
run: docker tag ubuntu:latest ${{ steps.tag_vars.outputs.IMAGE_NAME }}:latest
- name: Docker push
run: docker push ${{ steps.tag_vars.outputs.IMAGE_NAME }}:latest