This commit is contained in:
parent
f0450babde
commit
4713dce540
@ -3,31 +3,26 @@ on:
|
|||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
push:
|
push:
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/catthehacker/ubuntu:custom-20.04
|
image: git.halis.io/athens-school/runner-images:debian12.1-node18
|
||||||
runs-on: [arm64]
|
runs-on: [arm64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Make tag
|
- name: Make tag
|
||||||
id: tag_vars
|
id: tag_vars
|
||||||
run: echo "IMAGE_NAME=$(echo $GITHUB_SERVER_URL/$GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)" >> $GITHUB_OUTPUT
|
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
|
- name: Login to register
|
||||||
uses: https://gitea.com/docker/login-action@v2
|
uses: https://gitea.com/docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: git.halis.io
|
registry: git.halis.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.CONTAINER_TOKEN }}
|
||||||
- name: Docker pull
|
- name: Build and push
|
||||||
run: docker pull ubuntu:latest
|
uses: https://github.com/docker/build-push-action@v4
|
||||||
- name: Var envs
|
with:
|
||||||
run: export
|
context: .
|
||||||
- name: Docker retag
|
push: true
|
||||||
run: docker tag ubuntu:latest ${{ steps.tag_vars.outputs.IMAGE_NAME }}:latest
|
tags: ${{ IMAGE_NAME }}:latest
|
||||||
- name: Docker push
|
|
||||||
run: docker push ${{ steps.tag_vars.outputs.IMAGE_NAME }}:latest
|
|
||||||
|
Loading…
Reference in New Issue
Block a user