mirror of
https://github.com/TheCommsChannel/TC2-BBS-mesh.git
synced 2025-12-16 16:24:32 -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
|
- uses: actions/checkout@v4
|
||||||
- name: Set environment variable
|
- name: Set environment variable
|
||||||
run: echo "VERSION=$(date +%s)" >> $GITHUB_ENV
|
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
|
- name: Build the Docker image
|
||||||
run: docker build . --file Dockerfile --tag ghcr.io/raspberryprogramming/tc2-bbs-mesh:$VERSION
|
run: docker build . --file Dockerfile --tag ghcr.io/raspberryprogramming/tc2-bbs-mesh:$VERSION
|
||||||
- name: Add latest tag to docker image
|
- name: Add latest tag to docker image
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue