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
# Configures this workflow to run every time a change is pushed and have tags
5
4
on:
6
5
push:
7
6
tags:
8
7
- '*'
9
8
10
-
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
11
9
env:
12
10
REGISTRY: ghcr.io
13
11
IMAGE_NAME: ${{ github.repository }}
14
-
#IMAGE_NAME: ghcr.io/justcoded/plopjs
15
12
16
-
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
17
13
jobs:
18
14
build-and-push-image:
19
15
runs-on: ubuntu-latest
20
-
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
21
16
permissions:
22
17
contents: read
23
18
packages: write
24
-
#
19
+
25
20
steps:
26
21
- name: Checkout repository
27
22
uses: actions/checkout@v4
28
-
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
# This step uses [docker/metadata-action](https://github.com/docker/metadata-action#about) to extract tags and labels that will be applied to the specified image. The `id` "meta" allows the output of this step to be referenced in a subsequent step. The `images` value provides the base name for the tags and labels.
36
-
37
30
38
31
- name: Extract metadata (tags, labels) for Docker
0 commit comments