test: switch to docker build

This commit is contained in:
Tom Andrade 2023-08-30 10:15:22 +02:00
parent 9dc72a75ca
commit 28209e3459
Signed by: wolvie
GPG Key ID: 31AAB07872E82669

View File

@ -10,20 +10,16 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Setup Buildah
run: |
apt -y update
apt -y install buildah
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Buildah Action # https://github.com/marketplace/actions/push-to-ghcr
uses: redhat-actions/buildah-build@v2 - name: Build and publish a Docker image for ${{ gitea.repository }}
uses: macbre/push-to-ghcr@v13
with: with:
image: my-new-image image_name: ${{ gitea.repository }} # it will be lowercased internally
tags: latest ${{ github.sha }} # github_token: ${{ secrets.GITHUB_TOKEN }}
containerfiles: | # optionally push to the Docker Hub (docker.io)
./Dockerfile docker_io_token: ${{ secrets.DOCKER_IO_ACCESS_TOKEN }} # see https://hub.docker.com/settings/security
build-args: | # customize the username to be used when pushing to the Docker Hub
TARGETARCH=amd64 docker_io_user: tandrade # see https://github.com/macbre/push-to-ghcr/issues/14
BUILD_DATE=$(date +%Y%m%d%H%M)