Skip to content

Commit

Permalink
Checkout before build.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-matera committed Aug 2, 2023
1 parent f014b45 commit 863764e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/repo2docker-action.yaml
@@ -1,3 +1,4 @@
#
name: Create and publish a Docker image

on:
Expand All @@ -6,7 +7,7 @@ on:
- 'main'
tags:
- 'release-*'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand All @@ -18,13 +19,16 @@ jobs:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
Expand Down

0 comments on commit 863764e

Please sign in to comment.