Skip to content

Commit f1abdf9

Browse files
committed
ci: build and publish container image (#181)
1 parent 6eb6d7b commit f1abdf9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build a container image and publish it to GitHub Container Registry
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish-docker-image:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Login to GitHub Container Registry
14+
uses: docker/login-action@v1
15+
with:
16+
registry: ghcr.io
17+
username: ${{ github.actor }}
18+
password: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Build and push Docker image to the GHCR
20+
run: |
21+
docker build . --tag ghcr.io/gbdev/gb-asm-tutorial:latest
22+
docker push ghcr.io/gbdev/gb-asm-tutorial:latest

0 commit comments

Comments
 (0)