Changing GitHub Actions to reflect the GitHub user + updating some references #4
Workflow file for this run
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: build_docker_image | |
on: | |
push: | |
branches: [dev] | |
paths: | |
- 'Dockerfile' | |
- 'requirements.txt' | |
- '.github/workflows/build.yml' | |
pull_request: | |
branches: [dev] | |
paths: | |
- 'Dockerfile' | |
- 'requirements.txt' | |
- '.github/workflows/build.yml' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Login to GitHub Packages | |
uses: docker/login-action@v3 | |
with: | |
registry: docker.pkg.github.com | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
context: . | |
push: true | |
tags: docker.pkg.github.com/${{ github.actor }}/seshat/tests-image:latest |