Skip to content

Commit b7ab7a6

Browse files
committed
Add workflows for GH Container Registry
Signed-off-by: Federico Guerinoni <guerra@develer.com>
1 parent 838b641 commit b7ab7a6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)