Compare commits

..
Author SHA1 Message Date
dzu
5da5d6dd74 add container build and upload action
All checks were successful
Upload the container / build-and-upload (push) Successful in 3s
2026-02-05 20:19:41 +00:00
dzu
8b16dd900d fix the alpine image version 2026-02-05 20:18:48 +00:00
2 changed files with 23 additions and 2 deletions

View file

@ -0,0 +1,19 @@
name: Upload the container
on:
workflow_dispatch:
push:
jobs:
build-and-upload:
runs-on: docker
steps:
- name: Checkout code
uses: https://git.dzuchun.ing/actions/checkout@v1
- name: Build and push the image
uses: https://git.dzuchun.ing/actions/container-upload@v0.4.2
with:
registry-user: actions
token: ${{ secrets.REGISTRY_PAT }}

View file

@ -1,10 +1,12 @@
FROM git.dzuchun.ing/actions/alpine:latest AS builder
ARG ALPINE_VERSION=1.0.0-alpine-3.23.3
FROM git.dzuchun.ing/actions/alpine:$ALPINE_VERSION AS builder
# install docker cli
RUN apk add --no-cache docker-cli; apk cache clean
# add separate step to avoid making layers
FROM git.dzuchun.ing/actions/alpine:latest
FROM git.dzuchun.ing/actions/alpine:$ALPINE_VERSION
COPY --from=builder . .