Update golang Docker tag to v1.23 #794
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: E2E | |
on: push | |
env: | |
# Use docker.io for Docker Hub if empty | |
REGISTRY: ghcr.io | |
# github.repository as <account>/<repo> | |
IMAGE_NAME: ${{ github.repository }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build docker image | |
env: | |
KMS_SECRETS_IMAGE: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }} | |
run: | | |
docker build . --file Dockerfile --tag $KMS_SECRETS_IMAGE | |
docker push $KMS_SECRETS_IMAGE | |
e2e-test: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version-file: "go.mod" | |
- uses: engineerd/setup-kind@v0.5.0 | |
with: | |
version: "v0.11.1" | |
- name: Install ginkgo | |
run: | | |
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@latest | |
- name: Testing | |
env: | |
KMS_SECRETS_IMAGE: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }} | |
AWS_REGION: ap-northeast-1 | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
KMS_KEY_ID: ${{ secrets.KMS_KEY_ID }} | |
run: | | |
go mod download | |
ginkgo -r ./e2e | |