Skip to content

Merge pull request #2 from AllenNeuralDynamics/foraging-main-copy #2

Merge pull request #2 from AllenNeuralDynamics/foraging-main-copy

Merge pull request #2 from AllenNeuralDynamics/foraging-main-copy #2

Workflow file for this run

name: Tag and publish
on:
push:
branches:
- main
jobs:
# tag:
# uses: AllenNeuralDynamics/aind-github-actions/.github/workflows/tag.yml@main
# secrets:
# SERVICE_TOKEN: ${{ secrets.SERVICE_TOKEN }} # required
publish:
runs-on: ubuntu-latest
# needs: tag
steps:
- uses: actions/checkout@v3
- name: Pull latest changes
run: git pull origin main
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Github Packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to GitHub Container Registry
uses: docker/build-push-action@v3
with:
# relative path to the place where source code with Dockerfile is located
context: .
push: true
tags: ghcr.io/allenneuraldynamics/foraging-behavior-browser-test:latest
# tags: |
# ghcr.io/allenneuraldynamics/foraging-behavior-browser-test:${{ needs.tag.outputs.new_version }}
# ghcr.io/allenneuraldynamics/foraging-behavior-browser-test:latest