Skip to content

Merge pull request #4 from Memphis-ARTCC/develop #3

Merge pull request #4 from Memphis-ARTCC/develop

Merge pull request #4 from Memphis-ARTCC/develop #3

Workflow file for this run

name: Build & Push Prod
on:
push:
tags:
- "*"
jobs:
BuildAndPush:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build images
run: |
docker build -t api -f Memphis.API/Dockerfile .
docker build -t airports-job -f Memphis.Jobs.Airports/Dockerfile .
docker build -t atc-job -f Memphis.Jobs.ATC/Dockerfile .
docker build -t datafeed-job -f Memphis.Jobs.Datafeed/Dockerfile .
docker build -t events-job -f Memphis.Jobs.Events/Dockerfile .
docker build -t roster-job -f Memphis.Jobs.Roster/Dockerfile .
docker build -t solocerts-job -f Memphis.Jobs.SoloCerts/Dockerfile .
- name: Tag images
run: |
docker tag api ghcr.io/memphis-artcc/api:latest
docker tag api ghcr.io/memphis-artcc/api:${{ env.RELEASE_VERSION }}
docker tag api ghcr.io/memphis-artcc/airports-job:latest
docker tag api ghcr.io/memphis-artcc/airports-job:${{ env.RELEASE_VERSION }}
docker tag api ghcr.io/memphis-artcc/atc-job:latest
docker tag api ghcr.io/memphis-artcc/atc-job:${{ env.RELEASE_VERSION }}
docker tag api ghcr.io/memphis-artcc/datafeed-job:latest
docker tag api ghcr.io/memphis-artcc/datafeed-job:${{ env.RELEASE_VERSION }}
docker tag api ghcr.io/memphis-artcc/events-job:latest
docker tag api ghcr.io/memphis-artcc/events-job:${{ env.RELEASE_VERSION }}
docker tag api ghcr.io/memphis-artcc/roster-job:latest
docker tag api ghcr.io/memphis-artcc/roster-job:${{ env.RELEASE_VERSION }}
docker tag api ghcr.io/memphis-artcc/solocerts-job:latest
docker tag api ghcr.io/memphis-artcc/solocerts-job:${{ env.RELEASE_VERSION }}
- name: Push images
run: |
docker push api ghcr.io/memphis-artcc/api:latest
docker push api ghcr.io/memphis-artcc/api:${{ env.RELEASE_VERSION }}
docker push api ghcr.io/memphis-artcc/airports-job:latest
docker push api ghcr.io/memphis-artcc/airports-job:${{ env.RELEASE_VERSION }}
docker push api ghcr.io/memphis-artcc/atc-job:latest
docker push api ghcr.io/memphis-artcc/atc-job:${{ env.RELEASE_VERSION }}
docker push api ghcr.io/memphis-artcc/datafeed-job:latest
docker push api ghcr.io/memphis-artcc/datafeed-job:${{ env.RELEASE_VERSION }}
docker push api ghcr.io/memphis-artcc/events-job:latest
docker push api ghcr.io/memphis-artcc/events-job:${{ env.RELEASE_VERSION }}
docker push api ghcr.io/memphis-artcc/roster-job:latest
docker push api ghcr.io/memphis-artcc/roster-job:${{ env.RELEASE_VERSION }}
docker push api ghcr.io/memphis-artcc/solocerts-job:latest
docker push api ghcr.io/memphis-artcc/solocerts-job:${{ env.RELEASE_VERSION }}