1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
website-2020-spike/.github/workflows/docker.yml

22 lines
619 B
YAML
Raw Normal View History

name: Docker
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build container
run: docker build --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/website:latest .
- name: Log into GitHub Docker Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY%/*} --password-stdin
2020-04-25 16:57:27 +01:00
if: github.ref == master
- name: Push the Docker container
run: docker push docker.pkg.github.com/${GITHUB_REPOSITORY,,}/website:latest
2020-04-25 16:57:27 +01:00
if: github.ref == master