forked from AtomicJar/S123
-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (31 loc) · 957 Bytes
/
dbc.yml
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
32
33
34
name: dbc
on:
push:
branches:
- "main"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: "todo-demo-app:latest"
driver: cloud
endpoint: "docker/devrel"
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
tags: "IMAGE"
# For pull requests, export results to the build cache.
# Otherwise, push to a registry.
# outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry,push=true' }}
outputs: ${{ 'type=registry,push=true' }}