would be nice if this worked
This commit is contained in:
parent
e06b69f2f1
commit
bf73fc7137
23
.github/workflows/build-arch-images.yml
vendored
23
.github/workflows/build-arch-images.yml
vendored
@ -28,6 +28,7 @@ jobs:
|
|||||||
]
|
]
|
||||||
env:
|
env:
|
||||||
ABSOLUTE_DH_IMAGE: docker.io/corysanin/archy-build-thing
|
ABSOLUTE_DH_IMAGE: docker.io/corysanin/archy-build-thing
|
||||||
|
DEPLOY: github.ref == 'refs/heads/master' && ( github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' )
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
@ -45,22 +46,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
install: true
|
install: true
|
||||||
|
|
||||||
- name: Build Docker image
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
push: false
|
|
||||||
pull: true
|
|
||||||
no-cache: true
|
|
||||||
context: ./docker/
|
|
||||||
file: ./docker/Dockerfile.${{ matrix.images }}
|
|
||||||
tags: "${{ env.ABSOLUTE_DH_IMAGE }}:${{ matrix.images }}"
|
|
||||||
|
|
||||||
- name: Log in to the Docker Hub
|
- name: Log in to the Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Push to Docker Hub
|
- name: Build Docker image
|
||||||
if: github.ref == 'refs/heads/master' && ( github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' )
|
uses: docker/build-push-action@v6
|
||||||
run: docker push "${{ env.ABSOLUTE_DH_IMAGE }}:${{ matrix.images }}"
|
with:
|
||||||
|
push: ${{ env.DEPLOY }}
|
||||||
|
pull: true
|
||||||
|
no-cache: true
|
||||||
|
context: ./docker/
|
||||||
|
file: ./docker/Dockerfile.${{ matrix.images }}
|
||||||
|
tags: "${{ env.ABSOLUTE_DH_IMAGE }}:${{ matrix.images }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user