This commit is contained in:
parent
a277e9125d
commit
b028ca1d15
@ -10,7 +10,6 @@ on:
|
||||
branches: [ "main" ]
|
||||
|
||||
env:
|
||||
# Use docker.io or ghcr.io
|
||||
REGISTRY: docker.io
|
||||
RELEASE: latest
|
||||
USER: sthopeless
|
||||
@ -22,9 +21,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
@ -40,14 +36,14 @@ jobs:
|
||||
id: repo_name
|
||||
run: |
|
||||
echo "IMAGE_NAME=${{ env.USER }}/${{ env.IMAGE }}:${{ env.RELEASE }}" >> $GITHUB_ENV
|
||||
echo "1: ${{ env.IMAGE_NAME }}" # This is for debugging, optional
|
||||
echo "IMAGE_NAME: ${{ env.IMAGE_NAME }}" # Debugging output
|
||||
|
||||
- name: Github repository name
|
||||
if: ${{ env.REGISTRY == 'ghcr.io' }}
|
||||
id: repo_name
|
||||
run: |
|
||||
echo "IMAGE_NAME=${{ env.REGISTRY }}/${{ env.USER }}/${{ env.IMAGE }}:${{ env.RELEASE }}" >> $GITHUB_ENV
|
||||
echo "2: ${{ env.IMAGE_NAME }}" # This is for debugging, optional
|
||||
echo "IMAGE_NAME: ${{ env.IMAGE_NAME }}" # Debugging output
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
|
Loading…
x
Reference in New Issue
Block a user