faking a commit for a push for assurance that go.sum on github.com is… #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ "*" ] | |
tags: [ "v*" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: update image vars | |
run: | | |
if [ "$GITHUB_REF_TYPE" = "tag" ] | |
then | |
echo IMAGE_TYPE=beta | |
echo IMAGE_TAG=$GITHUB_REF_NAME | |
else | |
echo IMAGE_TYPE=dev | |
echo IMAGE_TAG= | |
fi >> $GITHUB_ENV | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: cd beta && ./docker-build.sh $IMAGE_TYPE $IMAGE_TAG |