This commit is contained in:
Jan Speller 2020-04-13 20:13:14 +02:00 committed by Jan Speller
parent 1836223f95
commit 2862123fe6

View file

@ -13,11 +13,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag boswatch:$(date +%s)
run: docker build . --file Dockerfile --tag boswatch:latest
- name: docker login
env:
GH_PACKAGES_USERNAME: ${{ secrets.GH_PACKAGES_USERNAME }}
GH_PACKAGES_PASSWORD: ${{ secrets.GH_PACKAGES_PASSWORD }}
run: docker login docker.pkg.github.com --username $GH_PACKAGES_USERNAME --password $GH_PACKAGES_PASSWORD
- name: Push the Docker image to Github Packages
- name: Rename the Docker image
run: docker tag boswatch docker.pkg.github.com/janspeller/bw3-core/boswatch:latest
- name: Push the Docker image to Github package repository
run: docker push docker.pkg.github.com/janspeller/bw3-core/boswatch:latest