-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (51 loc) · 1.59 KB
/
build-base-extra.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: extra-build
on:
push:
branches:
- master
- devel
paths:
- 'facilebio_base_extra/**'
schedule:
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#onschedule
# https://crontab.guru/ to debug cron syntax
# run every Monday and Thursday at 3:00 AM Pacific (8 AM UTC)
# (takes about an hour)
- cron: '0 10 * * 1,4'
workflow_dispatch:
inputs:
dummy:
description: 'A dummy variable to enable manual workflow execution'
required: false
default: 'gitty up'
jobs:
docker:
name: Build & push docker image
runs-on: ubuntu-latest
env:
IMG_NAME: facilebio/facilebio_base_extra
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker metadata
id: metadata
uses: docker/metadata-action@v3
with:
images: ${{ env.IMG_NAME }}
tags: |
type=ref,event=branch
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push docker image
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ env.IMG_NAME }}:latest
context: facilebio_base_extra
secrets: |
"GITHUB_PAT=${{ secrets.GITHUB_TOKEN }}"