We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 838b641 commit b7ab7a6Copy full SHA for b7ab7a6
.github/workflows/github-container-registry.yml
@@ -0,0 +1,26 @@
1
+name: GitHub Container Registry
2
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
7
+jobs:
8
+ GHCR:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v2
12
13
+ - name: Build
14
+ run: docker build -t go-docker-mqtt-ubuntu .
15
16
+ - name: Login to GitHub Container Registry
17
+ uses: docker/login-action@master
18
+ with:
19
+ registry: ghcr.io
20
+ username: ${{ github.repository_owner }}
21
+ password: ${{ secrets.CR_PAT }}
22
23
+ - name: Publish
24
+ run: |
25
+ docker tag go-docker-mqtt-ubuntu ghcr.io/guerinoni/go-docker-mqtt-ubuntu:latest
26
+ docker push ghcr.io/guerinoni/go-docker-mqtt-ubuntu
0 commit comments