This commit is contained in:
parent
095318ddc2
commit
e786f0af0e
@ -9,12 +9,19 @@ jobs:
|
|||||||
build-and-push-container:
|
build-and-push-container:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: qemu
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: build container
|
- name: qemu setup
|
||||||
run: docker buildx build --platform linux/amd64,linux/arm64 -t git.gtz.dk/${{ gitea.repository }}:latest .
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: dockerx setup
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
- name: Cache Docker layers
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-buildx-
|
||||||
- name: login
|
- name: login
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@ -22,5 +29,7 @@ jobs:
|
|||||||
registry: git.gtz.dk
|
registry: git.gtz.dk
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.PACKAGE_TOKEN }}
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
||||||
|
- name: build container
|
||||||
|
run: docker buildx build --platform linux/amd64,linux/arm64 -t git.gtz.dk/${{ gitea.repository }}:latest .
|
||||||
- name: push container
|
- name: push container
|
||||||
run: docker push git.gtz.dk/${{ gitea.repository }}:latest
|
run: docker push git.gtz.dk/${{ gitea.repository }}:latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user