-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor fixes for the ci workflow (#33)
- Loading branch information
Showing
3 changed files
with
15 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,31 +16,31 @@ jobs: | |
environment: | ||
name: staging | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v2 | ||
# https://github.com/docker/setup-qemu-action | ||
- name: "[preparation] checkout" | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: "[preparation] set up golang" | ||
uses: actions/[email protected] | ||
with: | ||
go-version-file: go.mod | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
# https://github.com/docker/setup-buildx-action | ||
|
||
- name: "[preparation] set up qemu" | ||
uses: docker/[email protected] | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
uses: docker/setup-buildx-action@v3.6.1 | ||
with: | ||
driver-opts: image=moby/buildkit:v0.10.6 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.22.5" | ||
|
||
- name: login to docker hub | ||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | ||
|
||
- name: build the image to portainer ci with PR number | ||
- name: "build the image to portainer ci with PR number (portainerci/portainer-updater:pr${{ github.event.pull_request.number }})" | ||
if: ${{ github.event.pull_request.number != '' }} | ||
run: | | ||
"${GITHUB_WORKSPACE}/build/build_and_push.sh" portainerci pr$GITHUB_PR_NUMBER | ||
- name: build the image to portainer ci ( Develop Latest ) | ||
- name: "build the image to portainer ci (portainerci/portainer-updater:develop)" | ||
if: ${{ github.ref == 'refs/heads/develop' }} | ||
run: | | ||
"${GITHUB_WORKSPACE}/build/build_and_push.sh" portainerci develop |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
ARG GIT_COMMIT=unspecified | ||
|
||
FROM alpine:3.6 as base | ||
RUN apk add -U --no-cache ca-certificates | ||
|
||
|
||
FROM scratch | ||
FROM portainer/base:latest | ||
|
||
LABEL git_commit=$GIT_COMMIT | ||
|
||
COPY --from=base /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY dist / | ||
|
||
ENTRYPOINT [ "/portainer-updater" ] |
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