Created
February 3, 2023 00:49
-
-
Save gmlewis/93ee46b49c55d1d84f3aff369d4baefe to your computer and use it in GitHub Desktop.
Work in progress - GitHub Action - pushing image to Azure Container Registry using Dagger.io
This file contains hidden or 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: On push to develop | |
on: | |
push: | |
paths: | |
- '.env.test' | |
- '.**.js' | |
- '**.js' | |
- '**.json' | |
- '**.lock' | |
- 'public/**' | |
- 'src/**' | |
- 'tests/**' | |
branches: [ develop ] | |
jobs: | |
dagger: | |
name: dagger | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Login to Azure Container Registry | |
uses: azure/docker-login@v1 | |
with: | |
login-server: ${{ secrets.DOCKER_HUB_REGISTRY }} | |
username: ${{ secrets.DOCKER_HUB_USER }} | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- uses: actions/checkout@v3 | |
- name: Cache node modules | |
id: cache-yarn | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }} | |
- name: Run Dagger pipeline | |
run: go run cicd/on-push-to-develop/main.go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment