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/actions #14

DeanAyalon pushed a release to refs/heads/actions

DeanAyalon pushed a release to refs/heads/actions #14

Workflow file for this run

name: Docker Image CI
run-name: ${{ github.actor }} pushed a release to ${{ github.event.ref }}
on:
push:
branches:
- actions
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - name: awk
# run: awk
- name: Get branch name
# shell: bash
# run: echo $0
id: branch-name
run: |
echo "Ref: ${{ github.event.ref }}"
branch=$(echo "${{ github.event.ref }}" | awk -F'heads/' '{print $2}')
echo "branch=$branch" >> "$GITHUB_OUTPUT"
# run: branch=$(echo "${{ github.event.ref }}" | awk -F'heads/' '{print $2}')
- name: Echo branch
env:
branch: ${{ steps.branch-name.outputs.branch }}
run: echo "Branch $branch"
# - name: Build the Docker image using compose
# run: docker build . -t dean-verdaccio:test
# - name: Show images?
# run: docker image ls