Added week 1 Pokemon for Mayflowers 2024 event #621
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 | |
on: [ push ] | |
jobs: | |
test-and-build: | |
name: Push Docker Image | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
token: ${{ secrets.PAT }} | |
- name: Configure git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Pokecord" | |
- name: Gradle build | |
uses: burrunan/gradle-cache-action@v1 | |
with: | |
arguments: build | |
- name: Docker login | |
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin | |
- name: Docker build | |
run: docker build . -t ghcr.io/poke-cord/pokecordjda:latest --cache-from ghcr.io/poke-cord/pokecordjda:latest | |
- name: Docker push tag latest | |
run: docker push ghcr.io/poke-cord/pokecordjda:latest | |
if: github.ref == 'refs/heads/main' |