-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 758 Bytes
/
docker.yml
File metadata and controls
28 lines (28 loc) · 758 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
name: Build & Push Docker Image
on:
push:
branches:
- master
paths:
- 'website/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
attestations: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker image
run: docker build -t ghcr.io/neyrowz/neyrowz.dev:latest ./website
- name: Push Docker image
run: docker push ghcr.io/neyrowz/neyrowz.dev:latest