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 6eb6d7b commit f1abdf9Copy full SHA for f1abdf9
.github/workflows/push-push-container-image.yml
@@ -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