Skip to content

Commit eec7546

Browse files
authoredJul 19, 2021
Create docker-build.yml
1 parent 3427b89 commit eec7546

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
 

‎.github/workflows/docker-build.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Docker image
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
push_to_registry:
7+
name: Push Docker image to GitHub Packages
8+
runs-on: ubuntu-latest
9+
permissions:
10+
packages: write
11+
contents: read
12+
steps:
13+
- name: Check out the repo
14+
uses: actions/checkout@v2
15+
- name: Log in to GitHub Docker Registry
16+
uses: docker/login-action@v1
17+
with:
18+
registry: docker.pkg.github.com
19+
username: ${{ github.actor }}
20+
password: ${{ secrets.GITHUB_TOKEN }}
21+
- name: Build container image
22+
uses: docker/build-push-action@v2
23+
with:
24+
push: true
25+
tags: |
26+
docker.pkg.github.com/${{ github.repository }}/slapd-simple:${{ github.sha }}
27+
docker.pkg.github.com/${{ github.repository }}/slapd-simple:${{ github.ref }}

0 commit comments

Comments
 (0)
Please sign in to comment.