This commit is contained in:
parent
25e603b5b7
commit
3a9c9b6cc5
1 changed files with 27 additions and 26 deletions
|
|
@ -1,35 +1,36 @@
|
||||||
name: Create and publish a Docker image
|
name: Create and publish a Docker image
|
||||||
on: [push]
|
on: [push]
|
||||||
env:
|
|
||||||
REGISTRY: ghcr.io
|
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
-
|
||||||
|
name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
-
|
||||||
- name: Log in to the Container registry
|
name: Set up QEMU
|
||||||
uses: docker/login-action@v3
|
uses: docker/setup-qemu-action@v3
|
||||||
with:
|
-
|
||||||
registry: ${{ env.REGISTRY }}
|
name: Set up Docker Buildx
|
||||||
username: ${{ github.actor }}
|
uses: docker/setup-buildx-action@v3
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
# -
|
||||||
|
# name: Log in to the Container registry
|
||||||
- name: Docker metadata
|
# uses: docker/login-action@v3
|
||||||
id: meta
|
# with:
|
||||||
uses: docker/metadata-action@v5
|
# registry: ${{ env.REGISTRY }}
|
||||||
with:
|
# username: ${{ github.actor }}
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
# password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# -
|
||||||
- name: Build and push
|
# name: Docker metadata
|
||||||
uses: docker/build-push-action@v6
|
# id: meta
|
||||||
with:
|
# uses: docker/metadata-action@v5
|
||||||
context: .
|
# with:
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
# images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
# -
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
# name: Build and push
|
||||||
|
# uses: https://github.com/docker/build-push-action@v6
|
||||||
|
# with:
|
||||||
|
# push: true
|
||||||
Loading…
Add table
Reference in a new issue