You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# According to https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions#upgrading-a-workflow-that-accesses-ghcrio
2
+
name: Create and publish a Container image
3
+
4
+
on:
5
+
push:
6
+
tags:
7
+
- '*'
8
+
branches:
9
+
- master
10
+
- docker
11
+
12
+
env:
13
+
REGISTRY: ghcr.io
14
+
IMAGE_NAME: ${{ github.repository }}
15
+
16
+
jobs:
17
+
build-and-push-image:
18
+
runs-on: ubuntu-latest
19
+
permissions:
20
+
contents: read
21
+
packages: write
22
+
23
+
steps:
24
+
- name: Checkout repository
25
+
uses: actions/checkout@v4.1.1
26
+
27
+
- name: Log in to the Container registry
28
+
uses: docker/login-action@v3.2.0
29
+
with:
30
+
registry: ${{ env.REGISTRY }}
31
+
username: ${{ github.actor }}
32
+
password: ${{ secrets.GITHUB_TOKEN }}
33
+
34
+
- name: Extract metadata (tags, labels) for Docker
0 commit comments