Merge pull request #409 from es-na-battlesnake/dependabot/bundler/act… #43
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: Base Image build + push toGHCR - main branch | |
permissions: | |
packages: write | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-base-main: | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build the base Docker image | |
run: docker build . --file Dockerfile.base --tag ghcr.io/es-na-battlesnake/code-snake:latest | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push Docker image | |
run: docker push ghcr.io/es-na-battlesnake/code-snake:latest |