2023-12-28 17:29:38 +00:00
|
|
|
name: Build docker image
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-image:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: catthehacker/ubuntu:act-latest
|
|
|
|
steps:
|
2024-11-07 10:45:34 +00:00
|
|
|
- name: Login to docker.io registry
|
|
|
|
uses: docker/login-action@v3.3.0
|
|
|
|
with:
|
|
|
|
username: hakkonaut
|
|
|
|
password: ${{ secrets.DOCKER_PERSONAL_ACCESS_TOKEN }}
|
2023-12-28 22:12:18 +00:00
|
|
|
- name: Login to Forgejo docker registry
|
2024-11-07 09:49:35 +00:00
|
|
|
uses: docker/login-action@v3.3.0
|
2023-12-28 22:12:18 +00:00
|
|
|
with:
|
|
|
|
registry: git.pub.solar
|
|
|
|
username: hakkonaut
|
|
|
|
password: ${{ secrets.GIT_AUTH_TOKEN }}
|
2023-12-28 17:29:38 +00:00
|
|
|
- name: Build and push
|
2024-11-07 09:49:35 +00:00
|
|
|
uses: docker/build-push-action@v6.9.0
|
2023-12-28 17:29:38 +00:00
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
tags: git.pub.solar/pub-solar/actions-base-image:20-bookworm
|