-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (28 loc) · 795 Bytes
/
docker.yml
File metadata and controls
31 lines (28 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
docker-baybridge:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: extractions/setup-just@v2
- name: Build css
run: just build-css
- name: Build & push docker image
run: |
docker build . --push --file Dockerfile \
--tag ghcr.io/nicolaschan/baybridge:${GITHUB_REF#refs/*/}-${{ github.run_id }} \
--tag ghcr.io/nicolaschan/baybridge:latest