chore: Housekeeping
This commit is contained in:
parent
6249c093f4
commit
822c235f3f
@ -10,7 +10,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Setup Node
|
- name: Set up Node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
@ -44,7 +44,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
build-image:
|
build-image:
|
||||||
name: build-image
|
name: Container image
|
||||||
runs-on: dind
|
runs-on: dind
|
||||||
needs: semrel_dryrun
|
needs: semrel_dryrun
|
||||||
container: ghcr.io/catthehacker/ubuntu:act-latest
|
container: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
@ -55,7 +55,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y qemu-user-static
|
sudo apt-get install -y qemu-user-static
|
||||||
- name: Set up Docker Context for Buildx
|
- name: Create builder context
|
||||||
id: buildx-context
|
id: buildx-context
|
||||||
run: |
|
run: |
|
||||||
docker context create builders
|
docker context create builders
|
||||||
@ -64,7 +64,7 @@ jobs:
|
|||||||
DOCKER_TLS_CERTDIR: /certs
|
DOCKER_TLS_CERTDIR: /certs
|
||||||
DOCKER_TLS_VERIFY: 1
|
DOCKER_TLS_VERIFY: 1
|
||||||
DOCKER_CERT_PATH: "/certs/client"
|
DOCKER_CERT_PATH: "/certs/client"
|
||||||
- name: Setup Docker Buildx
|
- name: Set up buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
@ -75,19 +75,18 @@ jobs:
|
|||||||
DOCKER_TLS_CERTDIR: "/certs"
|
DOCKER_TLS_CERTDIR: "/certs"
|
||||||
DOCKER_TLS_VERIFY: 1
|
DOCKER_TLS_VERIFY: 1
|
||||||
DOCKER_CERT_PATH: "/certs/client"
|
DOCKER_CERT_PATH: "/certs/client"
|
||||||
- name: Login to Gitea
|
- name: Login to target repository
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: code.spamasaurus.com
|
registry: code.spamasaurus.com
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.GIT_APIKEY }}
|
password: ${{ secrets.GIT_APIKEY }}
|
||||||
- name: Build and push the image
|
- name: Build & push container image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
# push: ${{ gitea.event_name != 'pull_request' }}
|
push: true
|
||||||
platforms: linux/amd64
|
context: .
|
||||||
context: djpbessems/packer-extended
|
tags: djpbessems/packer-extended:${{ needs.semrel_dryrun.outputs.version }}
|
||||||
tags: ${{ needs.semrel_dryrun.outputs.version }}
|
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: "tcp://docker:2376/"
|
DOCKER_HOST: "tcp://docker:2376/"
|
||||||
DOCKER_TLS_CERTDIR: "/certs"
|
DOCKER_TLS_CERTDIR: "/certs"
|
||||||
|
Loading…
Reference in New Issue
Block a user