Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

DeanAyalon pushed a release to refs/heads/dev #18

DeanAyalon pushed a release to refs/heads/dev

DeanAyalon pushed a release to refs/heads/dev #18

Workflow file for this run

name: Docker Image CI
run-name: ${{ github.actor }} pushed a release to ${{ github.event.ref }}
on:
push:
branches:
- main
- dev
- release/*
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Determine release tag from branch name
id: release-tag
# This script saves an environment variable TAG to GITHUB_OUTPUT
run: ./.github/scripts/release-tag.sh ${{ github.event.ref }}
- name: Build image
env:
TAG: ${{ steps.release-tag.outputs.TAG }}
run: |
docker build . -t jackdeaniels/private:verdaccio-$TAG
docker tag jackdeaniels/private:verdaccio-$TAG ghcr.io/deanayalon/verdaccio:$TAG
- name: List images
run: docker image ls
- name: Push images
env:
TAG: ${{ steps.release-tag.outputs.tag }}
run: |
docker push jackdeaniels/private:verdaccio-$TAG
docker push ghcr.io/deanayalon/verdaccio:$TAG