bruh #70
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Pipeline | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: docker login | |
env: | |
DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
DOCKER_PASS: ${{ secrets.DOCKER_PASS }} | |
run: | | |
docker login https://docker.pkg.github.com -u $DOCKER_USER -p $DOCKER_PASS | |
- name: npm install | |
run: | | |
pushd server && npm install && popd | |
- name: docker build | |
run: | | |
docker build . -t docker.pkg.github.com/josholaus/doofus-rick/bot:latest | |
- name: docker push | |
run: | | |
docker push docker.pkg.github.com/josholaus/doofus-rick/bot:latest |