Skip to content

upgrade action packages to latest versions #15 #271

upgrade action packages to latest versions #15

upgrade action packages to latest versions #15 #271

Workflow file for this run

name: Continuous Integration
on:
push:
schedule:
- cron: '0 17 * * *' # 3 AM AEST
jobs:
image:
env:
IMAGE_REPO: ${{ vars.DOCKER_ORG }}/${{ vars.DOCKER_REPO }}
IMAGE_TAG: sha-${{ github.sha }}
runs-on:
- linux
- self-hosted
- x64
# Use this if running locally w/ act
# - ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- uses: docker/[email protected]
with:
file: Dockerfile
no-cache: ${{ github.event_name == 'schedule' }}
push: true
tags: ${{ env.IMAGE_REPO }}:sha-${{ env.IMAGE_TAG }}
- name: Push branch tag
run: |
docker tag ${{ env.IMAGE_REPO }}:sha-${{ env.IMAGE_TAG }} ${{ env.IMAGE_REPO }}:${GITHUB_REF#refs/heads/}
docker push ${{ env.IMAGE_REPO }}:${GITHUB_REF#refs/heads/}
- name: Push 'latest' tag
if: github.ref == 'refs/heads/master'
run: |
docker tag ${{ env.IMAGE_REPO }}:sha-${{ env.IMAGE_TAG }} ${{ env.IMAGE_REPO }}:latest
docker push ${{ env.IMAGE_REPO }}:latest
readme:
needs: image
runs-on:
- self-hosted
# Use this if running locally w/ act
# - ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: ${{ vars.DOCKER_ORG }}/${{ vars.DOCKER_REPO }}