Skip to content

Commit 3d0fd24

Browse files
authored
Configure Docker build workflow with environment variables
Added environment variables for Docker registry and image name.
1 parent 00260cf commit 3d0fd24

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
name: build
22
on:
33
workflow_dispatch:
4+
env:
5+
# Use docker.io for Docker Hub if empty
6+
REGISTRY: ghcr.io
7+
# github.repository as <account>/<repo>
8+
IMAGE_NAME: ${{ github.repository }}
9+
10+
411
jobs:
512
build:
13+
614
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
718
steps:
819
- name: Checkout repository
920
uses: actions/checkout@v2

0 commit comments

Comments
 (0)