Skip to content

Commit

Permalink
add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guyzsarun committed Aug 9, 2023
1 parent 4811a5d commit 65e8af6
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: pipeline

on:
push

env:
BASE_TAG: user/xrootd-cmstfc:base
LATEST_TAG: ghcr.io/guyzsarun/xrootd-cmsjson:latest

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2

- uses: docker/setup-buildx-action@v2
with:
driver: docker

- name: Build Base Docker image
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile.base
tags: ${{ env.BASE_TAG }}
load: true

- name: Build Test Docker image
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile.test
build-contexts: |
base_img=docker-image://${{ env.BASE_TAG }}
2 changes: 1 addition & 1 deletion docker/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG base_img
FROM $base_img
FROM base_img

MAINTAINER Sarun Nuntaviriyakul <[email protected]>
LABEL org.opencontainers.image.source https://github.com/guyzsarun/xrootd-cmsjson
Expand Down

0 comments on commit 65e8af6

Please sign in to comment.