This commit is contained in:
@@ -9,8 +9,6 @@ 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
|
||||||
@@ -27,16 +25,17 @@ jobs:
|
|||||||
username: ${{ gitea.repository_owner }}
|
username: ${{ gitea.repository_owner }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Get Meta
|
- name: Lowercase Name
|
||||||
id: meta
|
|
||||||
run: |
|
run: |
|
||||||
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
|
env
|
||||||
|
cat /var/run/act/workflow/envs.txt
|
||||||
|
echo "IMAGE_NAME=${GITHUB_REPOSITORY@L}" >> ${GITHUB_ENV}
|
||||||
|
|
||||||
- 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 }}
|
IMAGE_URL: ${{ GITHUB_SERVER_URL }}/${{ IMAGE_NAME }}
|
||||||
with:
|
with:
|
||||||
context: containers/web
|
context: containers/web
|
||||||
file: ./Containerfile
|
file: ./Containerfile
|
||||||
@@ -44,4 +43,4 @@ jobs:
|
|||||||
linux/amd64
|
linux/amd64
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.IMAGE_NAME }}:${{ env.DOCKER_LATEST }}
|
${{ env.IMAGE_URL }}:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user