Add README.md #6
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: (Dev) Docker Workflow | |
on: | |
push: | |
branches: [ develop ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build and tag image | |
run: docker build -t "ghcr.io/hyriode/hyribot:dev" -f Dockerfile . --build-arg GITHUB_USERNAME=$GITHUB_ACTOR --build-arg GITHUB_TOKEN=$GITHUB_TOKEN | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
- name: Docker login | |
run: docker login ghcr.io -u $GITHUB_ACTOR -p $GITHUB_TOKEN | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
shell: bash | |
- name: Publish to GPR | |
run: docker push "ghcr.io/hyriode/hyribot:dev" | |
shell: bash |