Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F10493948
docker-publish.yml
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Subscribers
None
docker-publish.yml
View Options
name
:
Build container image, publish as GitHub-package
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
on
:
push
:
branches
:
[
main
,
develop
]
# Publish semver tags as releases.
tags
:
-
'v*.*.*'
env
:
# Use docker.io for Docker Hub if empty
REGISTRY
:
ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME
:
${{ github.repository }}
jobs
:
build
:
runs-on
:
ubuntu-latest
permissions
:
contents
:
read
packages
:
write
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v4
# Set up QEMU for cross-building
-
name
:
Set up QEMU
uses
:
docker/setup-qemu-action@v3.4.0
# Set up Docker Buildx
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3.0.0
# Login against a Docker registry except on PR
# https://github.com/docker/login-action
-
name
:
Log into registry ${{ env.REGISTRY }}
if
:
github.event_name != 'pull_request'
uses
:
docker/login-action@v3.0.0
with
:
registry
:
${{ env.REGISTRY }}
username
:
${{ github.actor }}
password
:
${{ secrets.GITHUB_TOKEN }}
# Extract metadata (tags, labels) for Docker
# https://github.com/docker/metadata-action
-
name
:
Extract Docker metadata
id
:
meta
uses
:
docker/metadata-action@v4.6.0
with
:
images
:
|
ghcr.io/${{ github.repository }}
flavor
:
latest=true
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
-
name
:
Build and push Docker images
uses
:
docker/build-push-action@v5.0.0
with
:
context
:
.
platforms
:
linux/amd64,linux/arm64
push
:
${{ github.event_name != 'pull_request' }}
tags
:
${{ steps.meta.outputs.tags }}
labels
:
${{ steps.meta.outputs.labels }}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 6, 1:57 AM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3168156
Attached To
rWF WriteFreely
Event Timeline
Log In to Comment