-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (27 loc) · 899 Bytes
/
Copy pathimage-dev.yaml
File metadata and controls
30 lines (27 loc) · 899 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
name: Image Dev
on:
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: docker/setup-buildx-action@master
- uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@master
with:
context: .
file: infra/docker/Dockerfile.dev
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/api-dev:latest
ghcr.io/${{ github.repository_owner }}/api-dev:${{ github.sha }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/api-dev:cache
cache-to: type=registry,ref=ghcr.io/${{ github.repository_owner }}/api-dev:cache,mode=max