Skip to content

Bump semver from 5.7.1 to 5.7.2 #45

Bump semver from 5.7.1 to 5.7.2

Bump semver from 5.7.1 to 5.7.2 #45

Workflow file for this run

name: Build & Push Docker Image
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build Docker Image
run: |
docker build . --file Dockerfile --tag ${GITHUB_SHA:0:8}
- name: Push Build Image
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u rogue-hack-lab --password-stdin
docker tag ${GITHUB_SHA:0:8} docker.pkg.github.com/rogue-hack-lab/hackbot/hackbot:${GITHUB_SHA:0:8}
docker push docker.pkg.github.com/rogue-hack-lab/hackbot/hackbot:${GITHUB_SHA:0:8}
- name: Push Latest Image
if: github.ref == 'refs/heads/master'
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u rogue-hack-lab --password-stdin
docker tag ${GITHUB_SHA:0:8} docker.pkg.github.com/rogue-hack-lab/hackbot/hackbot:latest
docker push docker.pkg.github.com/rogue-hack-lab/hackbot/hackbot:latest