mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-11-17 01:29:04 +00:00
22 lines
575 B
YAML
22 lines
575 B
YAML
|
name: Deploy
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v1
|
||
|
|
||
|
- name: Build production container
|
||
|
run: docker build --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/notes:latest .
|
||
|
|
||
|
- name: Log into GitHub Docker Registry
|
||
|
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY%/*} --password-stdin
|
||
|
|
||
|
- name: Push the Docker container
|
||
|
run: docker push docker.pkg.github.com/${GITHUB_REPOSITORY,,}/notes:latest
|