-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 972 Bytes
/
publish.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
name: Build and push docker images
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_core:
name: Build image
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
if: ${{ github.event_name == 'push' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push the image
uses: docker/build-push-action@v4
with:
tags: |
certpl/${{ github.event.repository.name }}:${{ github.sha }}
push: ${{ github.event_name == 'push' }}
# Flux v1 doesn't support OCI-compliant manifests
provenance: false