Skip to content

Implement client side configuration (#26) #30

Implement client side configuration (#26)

Implement client side configuration (#26) #30

Workflow file for this run

on:
push:
branches:
- main
name: Build container Image
jobs:
deploy:
runs-on: "ubuntu-latest"
permissions:
contents: read
packages: write
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=tag::$(echo ${GITHUB_SHA:8})
- name: Checkout code
uses: actions/checkout@v4
- name: Authenticate
uses: actions-hub/docker/login@master
env:
DOCKER_USERNAME: adelowo
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
DOCKER_REGISTRY_URL: ghcr.io
- name: Build latest image
run: docker build -t ghcr.io/${GITHUB_REPOSITORY}:${{ steps.get_version.outputs.tag }} --build-arg ACCESS_TOKEN_USR=adelowo --build-arg ACCESS_TOKEN=${{ secrets.GITHUB_TOKEN }} .
- name: Push
uses: actions-hub/docker@master
with:
args: push ghcr.io/${GITHUB_REPOSITORY}:${{ steps.get_version.outputs.tag }}