Loading .github/workflows/build.yml +4 −2 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ jobs: contents: read steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Build the Docker image run: docker build . --file Dockerfile --label "id=${GITHUB_RUN_ID}" --label "version=${{ secrets.MAJOR }}.${{ secrets.MINOR }}" --tag "${{ github.repository }}:latest" --tag "${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" --tag "ghcr.io/${{ github.repository }}:latest" --tag "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" Loading @@ -35,7 +37,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Push image to Github Container Registry name: Push to Github Container Registry run: docker push "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" && docker push "ghcr.io/${{ github.repository }}:latest" - name: Update Minor version Loading @@ -46,7 +48,7 @@ jobs: repository: ${{ github.repository }} token: ${{ secrets.REPO_ACCESS_TOKEN }} - name: Gitlab Sync name: Push to Gitlab mirror uses: wangchucheng/git-repo-sync@v0.1.0 with: target-url: https://gitlab.com/kroese/virtual-dsm.git Loading Loading
.github/workflows/build.yml +4 −2 Original line number Diff line number Diff line Loading @@ -15,6 +15,8 @@ jobs: contents: read steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Build the Docker image run: docker build . --file Dockerfile --label "id=${GITHUB_RUN_ID}" --label "version=${{ secrets.MAJOR }}.${{ secrets.MINOR }}" --tag "${{ github.repository }}:latest" --tag "${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" --tag "ghcr.io/${{ github.repository }}:latest" --tag "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" Loading @@ -35,7 +37,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Push image to Github Container Registry name: Push to Github Container Registry run: docker push "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" && docker push "ghcr.io/${{ github.repository }}:latest" - name: Update Minor version Loading @@ -46,7 +48,7 @@ jobs: repository: ${{ github.repository }} token: ${{ secrets.REPO_ACCESS_TOKEN }} - name: Gitlab Sync name: Push to Gitlab mirror uses: wangchucheng/git-repo-sync@v0.1.0 with: target-url: https://gitlab.com/kroese/virtual-dsm.git Loading