Skip to content

v1.5.2

v1.5.2 #48

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Publish Docker image
on:
release:
types: [released]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: acmfsu/contestsuite
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
# redeploy:
# name: Redeploy webhook call
# runs-on: ubuntu-latest
# needs: [push_to_registry]
# steps:
# - name: Invoke deployment hook
# uses: distributhor/workflow-webhook@v2
# env:
# webhook_url: ${{ secrets.AGON_WEBHOOK_URL }}
# webhook_secret: ${{ secrets.AGON_WEBHOOK_SECRET }}