Skip to content

Add fonts to igsn [test] #84

Add fonts to igsn [test]

Add fonts to igsn [test] #84

Workflow file for this run

name: Build - Dev and Prod Images
on:
push:
branches:
- master
- dev-sample
jobs:
build-and-push-ghcr-prod:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ vars.USERNAME }}
password: ${{ secrets.TOKEN }}
- name: Build and Push Docker image to GHCR (Prod)
uses: docker/build-push-action@v2
with:
context: ./ckan
file: ./ckan/Dockerfile
tags: ghcr.io/auscope/auscope-ckan:latest
push: true
build-and-push-ghcr-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ vars.USERNAME }}
password: ${{ secrets.TOKEN }}
- name: Extract timestamp
id: timestamp
run: echo "::set-output name=timestamp::$(date +'%Y%m%d%H%M%S')"
- name: Set dynamic tag
id: set-tag
run: |
if [[ "${{ github.ref }}" == "refs/heads/dev-sample" ]]; then
echo "::set-output name=tag::ghcr.io/auscope/auscope-ckan-dev:sample-${{ steps.timestamp.outputs.timestamp }}"
else
echo "::set-output name=tag::ghcr.io/auscope/auscope-ckan-dev:latest-${{ steps.timestamp.outputs.timestamp }}"
fi
- name: Build and Push Docker image to GHCR (Dev)
uses: docker/build-push-action@v2
with:
context: ./ckan
file: ./ckan/Dockerfile # Consider using a separate Dockerfile for dev if needed
tags: ${{ steps.set-tag.outputs.tag }} # ghcr.io/auscope/auscope-ckan-dev:latest-${{ steps.timestamp.outputs.timestamp }}
push: true