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