Compare commits
2 changed files with 2 additions and 23 deletions
|
|
@ -1,19 +0,0 @@
|
||||||
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 }}
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
ARG ALPINE_VERSION=1.0.0-alpine-3.23.3
|
FROM git.dzuchun.ing/actions/alpine:latest AS builder
|
||||||
|
|
||||||
FROM git.dzuchun.ing/actions/alpine:$ALPINE_VERSION AS builder
|
|
||||||
|
|
||||||
# install docker cli
|
# install docker cli
|
||||||
RUN apk add --no-cache docker-cli; apk cache clean
|
RUN apk add --no-cache docker-cli; apk cache clean
|
||||||
|
|
||||||
# add separate step to avoid making layers
|
# add separate step to avoid making layers
|
||||||
FROM git.dzuchun.ing/actions/alpine:$ALPINE_VERSION
|
FROM git.dzuchun.ing/actions/alpine:latest
|
||||||
|
|
||||||
COPY --from=builder . .
|
COPY --from=builder . .
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue