This commit is contained in:
parent
29a6b544ad
commit
7f3dadd434
1 changed files with 17 additions and 13 deletions
|
@ -16,19 +16,23 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: deploy
|
name: deploy
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
|
||||||
image: quay.io/buildah/stable:latest
|
|
||||||
env:
|
|
||||||
STORAGE_DRIVER: vfs
|
|
||||||
steps:
|
steps:
|
||||||
- name: download
|
|
||||||
run: curl https://${{ env.url }}/archive/main.tar.gz | tar -xz
|
|
||||||
|
|
||||||
- name: build
|
|
||||||
run: buildah build -f ${{ env.repo }}/Containerfile -t ${{ env.url }}:latest ${{ env.repo }}
|
|
||||||
|
|
||||||
- name: login
|
- name: login
|
||||||
run: buildah login -u token -p ${{ env.token }} ${{ env.git }}
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ env.git }}
|
||||||
|
username: token
|
||||||
|
password: ${{ env.token }}
|
||||||
|
|
||||||
|
- name: qemu
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
-
|
||||||
|
name: build
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: ${{ env.git }}/${{ github.repository }}:latest
|
||||||
|
|
||||||
- name: push
|
|
||||||
run: buildah push ${{ env.git }}/${{ github.repository }}:latest
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue