Bump github.com/Azure/azure-sdk-for-go/sdk/azcore from 1.7.0 to 1.7.2 #874
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: release | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build-and-release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Assign variable | |
id: secret | |
run: echo '::set-output name=secret::${{secrets.GHACTIONS_SECRET}}' | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
if: ${{ steps.secret.outputs.secret }} | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GHACTIONS_SECRET }} | |
- name: Run Checks, Tests and Build | |
uses: devcontainers/ci@v0.2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GHACTIONS_SECRET }} | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} | |
BUILD_NUMBER: ${{ github.run_number }} | |
IS_PR: ${{ github.head_ref }} | |
BRANCH: ${{ github.ref }} | |
IS_CI: "true" | |
with: | |
imageName: ghcr.io/lawrencegripper/azbrowse/devcontainer | |
cacheFrom: ghcr.io/lawrencegripper/azbrowse/devcontainer | |
push: filter | |
refFilterForPush: refs/heads/main | |
runCmd: ruby scripts/release.rb | |
# Map through the envs from above into the devcontain | |
# empty items mean it takes value from the `env` on stage | |
env: | | |
GITHUB_TOKEN | |
DOCKER_USERNAME | |
DOCKER_PASSWORD | |
SNAPCRAFT_STORE_CREDENTIALS | |
BUILD_NUMBER | |
IS_CI | |
IS_PR | |
BRANCH | |
- name: Upload azbrowse build as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: azbrowse-test-assets | |
path: dist/all_*/* |