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
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
15
+
jobs:
16
+
build-and-push-image:
17
+
runs-on: ubuntu-latest
18
+
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
19
+
permissions:
20
+
contents: read
21
+
packages: write
22
+
23
+
steps:
24
+
- name: Checkout repository
25
+
uses: actions/checkout@v4
26
+
27
+
# 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.
28
+
- name: Log in to the Container registry
29
+
uses: docker/login-action@v3
30
+
with:
31
+
registry: ${{ env.REGISTRY }}
32
+
username: ${{ github.actor }}
33
+
password: ${{ secrets.GITHUB_TOKEN }}
34
+
35
+
# 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
+
- name: Extract metadata (tags, labels) for Docker
0 commit comments