Skip to content

ensure jobs aren't over 63 characters #19

ensure jobs aren't over 63 characters

ensure jobs aren't over 63 characters #19

Workflow file for this run

name: Docker
on:
push:
# Publish `master` as Docker `latest` image.
branches:
- master
# Publish `v1.2.3` tags as releases.
tags:
- v*
# Run tests for any PRs.
pull_request:
env:
IMAGE_NAME: image
jobs:
# Push image to GitHub Package Registry.
# See also https://docs.docker.com/docker-hub/builds/
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- name: Build image
run: |
docker build . --file src/waka-go-proxy/Dockerfile --tag proxy
docker build . --file src/waka-orchestrator/Dockerfile --tag orchestrator
docker build . --file src/waka-realtime/Dockerfile --tag realtime
docker build . --file src/waka-worker/Dockerfile --tag worker
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Push image
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}
SHA=$(git rev-parse HEAD)
echo IMAGE_ID=$IMAGE_ID
echo SHA=$SHA
docker tag proxy $IMAGE_ID/proxy:latest
docker tag proxy $IMAGE_ID/proxy:$SHA
docker push $IMAGE_ID/proxy:latest
docker push $IMAGE_ID/proxy:$SHA
docker tag orchestrator $IMAGE_ID/orchestrator:latest
docker tag orchestrator $IMAGE_ID/orchestrator:$SHA
docker push $IMAGE_ID/orchestrator:latest
docker push $IMAGE_ID/orchestrator:$SHA
docker tag realtime $IMAGE_ID/realtime:latest
docker tag realtime $IMAGE_ID/realtime:$SHA
docker push $IMAGE_ID/realtime:latest
docker push $IMAGE_ID/realtime:$SHA
docker tag worker $IMAGE_ID/worker:latest
docker tag worker $IMAGE_ID/worker:$SHA
docker push $IMAGE_ID/worker:latest
docker push $IMAGE_ID/worker:$SHA