mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-12-14 15:36:23 -05:00
Add GitHub Container Registry login step
This commit is contained in:
parent
c11c6e513f
commit
f8e1962cd9
1 changed files with 6 additions and 0 deletions
6
.github/workflows/docker-image.yml
vendored
6
.github/workflows/docker-image.yml
vendored
|
|
@ -14,6 +14,12 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- name: Set environment variable
|
||||
run: echo "VERSION=$(date +%s)" >> $GITHUB_ENV
|
||||
- name: 'Login to GitHub Container Registry'
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{github.actor}}
|
||||
password: ${{secrets.GITHUB_TOKEN}}
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag ghcr.io/raspberryprogramming/tc2-bbs-mesh:$VERSION
|
||||
- name: Add latest tag to docker image
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue