blob: e46cbaac8d3c6fc284d3e7e55b5e77370f3fb04a (
plain)
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
|
name: Build and push Docker image to GitHub Container Registry
on:
push:
branches: [ "master" ]
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/lmbishop/panulat:latest
cache-from: type=gha
cache-to: type=gha,mode=max
|