-
-
Notifications
You must be signed in to change notification settings - Fork 541
31 lines (24 loc) · 875 Bytes
/
publish.docker.yml
File metadata and controls
31 lines (24 loc) · 875 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: Publish Docker
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v6
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
push: ${{ github.ref == 'refs/heads/main'}}
tags: oskardudycz/eventsourcing.netcore:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}