I hate yaml
This commit is contained in:
parent
e266f84da7
commit
104b038504
16
.github/workflows/build-arch-images.yml
vendored
16
.github/workflows/build-arch-images.yml
vendored
@ -27,20 +27,17 @@ jobs:
|
|||||||
artix
|
artix
|
||||||
]
|
]
|
||||||
env:
|
env:
|
||||||
DH_REGISTRY: docker.io
|
ABSOLUTE_DH_IMAGE: docker.io/corysanin/archy-build-thing
|
||||||
REPO_ORG: corysanin
|
|
||||||
IMAGE_NAME: archy-build-thing
|
|
||||||
ABSOLUTE_DH_IMAGE: ${{ env.DH_REGISTRY }}/${{ REPO_ORG }}/${{ env.IMAGE_NAME }}
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: Checkout repository
|
# - name: Checkout repository
|
||||||
# uses: https://github.com/actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
@ -49,7 +46,7 @@ jobs:
|
|||||||
install: true
|
install: true
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
uses: https://github.com/docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: false
|
push: false
|
||||||
pull: true
|
pull: true
|
||||||
@ -59,12 +56,11 @@ jobs:
|
|||||||
tags: "${{ env.ABSOLUTE_DH_IMAGE }}:${{ matrix.images }}"
|
tags: "${{ env.ABSOLUTE_DH_IMAGE }}:${{ matrix.images }}"
|
||||||
|
|
||||||
- name: Log in to the Docker Hub
|
- name: Log in to the Docker Hub
|
||||||
uses: https://github.com/docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.DH_REGISTRY }}
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Push to Docker Hub
|
- name: Push to Docker Hub
|
||||||
if: github.ref == 'refs/heads/master' && ( gitea.event_name == 'push' || gitea.event_name == 'schedule' )
|
if: github.ref == 'refs/heads/master' && ( github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' )
|
||||||
run: docker push "${{ env.ABSOLUTE_DH_IMAGE }}:${{ matrix.images }}"
|
run: docker push "${{ env.ABSOLUTE_DH_IMAGE }}:${{ matrix.images }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user