Skip to content

1.8.3

1.8.3 #59

Workflow file for this run

name: Docker
on:
# ctp.vatsim.dev
push:
branches:
- main
- develop
# ctp.vatsim.net
release:
types: [published]
branches:
- main
env:
IMAGE_NAME: nattrak
jobs:
push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Private Registry
uses: docker/login-action@v1
with:
registry: registry.digitalocean.com
username: ${{ secrets.DO_REGISTRY_USERNAME }}
password: ${{ secrets.DO_REGISTRY_USERNAME }}
- name: Generate Docker Metadata
id: meta
uses: docker/metadata-action@v3
with:
images: registry.digitalocean.com/vatsim-containers/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=latest,enable=${{ github.event_name == 'release' }}
type=raw,value=develop,enable=${{ github.event_name == 'push' }}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: ${{ steps.meta.outputs.tags }}
provenance: false
build-args: |
VITE_PUSHER_APP_KEY=${{ secrets.VITE_PUSHER_APP_KEY }}
VITE_PUSHER_HOST=${{ secrets.VITE_PUSHER_HOST }}
VITE_PUSHER_PORT=${{ secrets.VITE_PUSHER_PORT }}