forked from LUMC/docker-galaxy-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.09 KB
/
ci.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
35
on:
pull_request:
push:
branches:
- main
# schedule:
# # Build at 6 o'clock in the evening, UTC time on sundays.
# # Providing a fresh image for next week. And providing a chance to debug
# # the entire week in case of failure.
# - cron: '0 18 * * 0'
jobs:
build:
strategy:
matrix:
include:
- commit_id: release_23.1.4
tags: biodatapt/galaxy-compose:23.1.4,biodatapt/galaxy-compose:latest
- commit_id: dev
tags: biodatapt/galaxy-compose:dev
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build image
uses: docker/build-push-action@v2
with:
build-args: "GALAXY_COMMIT_ID=${{ matrix.commit_id }}"
tags: ${{ matrix.tags }}
push: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}