1 parent
cefe165e20
commit
40dfc09560
2 files changed
+105
-19
No files matched your search
@@ -7,22 +7,18 @@ jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: git.dswd73.duckdns.org
|
||||
username: ${{ vars.LOCAL_REPO_USER }}
|
||||
password: ${{ secrets.LOCAL_REPO_TOKEN }}
|
||||
-
|
||||
name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v4
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
push: true
|
||||
tags: git.dswd73.duckdns.org/dswd/dyndns-updater:latest
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Install Buildah
|
||||
run: |
|
||||
sudo apt update -y
|
||||
sudo apt install -y buildah
|
||||
- name: Build with Buildah
|
||||
run: |
|
||||
buildah bud -t my-image:latest .
|
||||
- name: Login to Registry
|
||||
run: |
|
||||
buildah login --username ${{ vars.LOCAL_REPO_USER }} --password ${{ secrets.LOCAL_REPO_TOKEN }} ${{ vars.LOCAL_REPO_URL }}
|
||||
- name: Push to Registry
|
||||
run: |
|
||||
buildah push my-image:latest docker://${{ vars.LOCAL_REPO_URL }}/${{ gitea.repository }}:latest
|
||||
Reference in new issue
Block a user