This commit is contained in:
parent
a9b12afe85
commit
f8f9aec70c
1 changed files with 13 additions and 12 deletions
|
@ -27,16 +27,17 @@ jobs:
|
|||
apk add --no-cache git nodejs
|
||||
|
||||
- name: "Login to Docker repository"
|
||||
id: login
|
||||
run: docker login -u "$GITHUB_ACTOR" -p "${{ secrets.PACKAGE_TOKEN }}" "$DOCKER_REPOSITORY"
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
registry: "$DOCKER_REPOSITORY"
|
||||
username: "$GITHUB_ACTOR"
|
||||
password: "${{ secrets.PACKAGE_TOKEN }}"
|
||||
|
||||
- name: "Get repo"
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
|
||||
- name: "Build Docker image"
|
||||
id: build
|
||||
run: docker buildx build --pull --platform linux/amd64 -t "$DOCKER_TAG" .
|
||||
|
||||
- name: "Publish Docker image"
|
||||
id: push
|
||||
run: docker push "$DOCKER_TAG"
|
||||
- name: "Build and push"
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: "$DOCKER_TAG"
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
|
Loading…
Reference in a new issue