-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 922 Bytes
/
main.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
name: Publish Docker
on:
push:
branches:
- 'staging'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Workflow run cleanup action
uses: rokroskar/workflow-run-cleanup-action@v0.3.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@master
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
- name: Build and publish image to Quay
uses: docker/build-push-action@v6
env:
REPOSITORY: https://github.com/deNBI/cloud-user-docs/archive/staging.tar.gz
with:
file: Dockerfile
push: true
build-args: REPOSITORY
tags: quay.io/denbicloud/mkdocswebhook:staging