We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3427b89 commit eec7546Copy full SHA for eec7546
.github/workflows/docker-build.yml
@@ -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
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