mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 20:09:48 -05:00
chore(docker): add docker build workflow
This commit is contained in:
parent
44fa1c6bab
commit
a739335b77
1 changed files with 30 additions and 0 deletions
30
.github/workflows/docker.yml
vendored
Normal file
30
.github/workflows/docker.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Docker Automated Builds
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
name: Docker
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
- name: Build
|
||||
run: docker build -t rustypaste .
|
||||
- name: Tag
|
||||
run: |
|
||||
docker tag rustypaste orhunp/rustypaste:latest
|
||||
docker tag rustypaste docker.pkg.github.com/orhun/rustypaste/rustypaste:latest
|
||||
- name: Login (Docker Hub)
|
||||
run: echo ${{ secrets.DOCKER_TOKEN }} |
|
||||
docker login -u orhunp --password-stdin
|
||||
- name: Push (Docker Hub)
|
||||
run: docker push orhunp/rustypaste:latest
|
||||
- name: Login (Package Registry)
|
||||
run: echo ${{ secrets.GITHUB_TOKEN }} |
|
||||
docker login -u orhun docker.pkg.github.com --password-stdin
|
||||
- name: Push (Package Registry)
|
||||
run: docker push docker.pkg.github.com/orhun/rustypaste/rustypaste:latest
|
Loading…
Reference in a new issue