Skip to content

Add image label

Add image label #2

Workflow file for this run

name: build
on:
push:
jobs:
build-base:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
file: docker/Dockerfile.base
push: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release'
tags: ghcr.io/guyzsarun/xrootd-cmsjson:base
# build:
# runs-on: ubuntu-latest
# if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/release'
# needs: test
# steps:
# - name: Check out Git repository
# uses: actions/checkout@v2
# - name: Build Docker image
# uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
# with:
# context: .
# file: docker/Dockerfile
# push: false